import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
import toast from '@dfeidao/atom-mobile/msgbox/toast';
import { Linking } from 'react-native';

export default async function a003(fd: IFeidaoAiMobile, e: Element, phone: string) {
	if (phone) {
		Linking.openURL(`tel:${phone}`); // todo 换原子操作
	} else {
		await toast({
			text: '没有家长联系人！',
			type: 'warning',
			position: 'center'
		});
	}
}

